<div *ngIf="hero">
    <h2>{{hero.name }} Details show</h2>
    <div><span>id: </span>{{hero.id}}</div>
    <div>
        <label>name:</label>
        <input [(ngModel)]="hero.name" placeholder="name" />
    </div>
    <button (click)="goBack()">go back</button>
    <button (click)="save()">save</button>
</div>